// 教程文档
// https://blog.csdn.net/qq_21567385/article/details/108251232
// http://mockjs.com/examples.html
// https://blog.csdn.net/weixin_43972992/article/details/106694812
import Mock from 'mockjs'
Mock.mock('/home/list', 'get', () => {
  return Mock.mock({
    rt_code: 0,
    rt_msg: 'success',
    'data|1-10': [
      {
        typeCode: '@character("upper")',
        typeName: '机械标准零件@increment(1)',
        imagePath: '@image("200x200","@color","#FFF","png","testimage")',
      },
    ],
  })
})

Mock.mock(/\/home\/info/, 'post', () => {
  return {
    'list|1-10': [
      {
        'id|+1': 1,
        name: '@cname',
      },
    ],
  }
})
